<script type="text/javascript">
    var shell = null,
        ownerCt;
    Ext.onReady(function(){
        Ext.FocusManager.enable(false);
        Ext.tip.QuickTipManager.init();
        try {
            var viewport = Ext.create('Ext.container.Viewport', {
                layout:{type:'fit'}
            });
            shell = Ext.create('<?php echo $this->enter_string ?>');
            viewport.add(shell);
            viewport.close = function(){
                if(ownerCt && typeof(ownerCt.close) == 'function'){
                    ownerCt.close();
                }
            };
        } catch (e) {
            alertError(e.message);
            throw e;
        }
    });
</script>